<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>文本颜色控制器</title>
<!--    <link rel="stylesheet" href="one.css" type="text/css" >-->
</head>
<body>
<div class="container">
    <div id="color-text">试试改变我的颜色！🌈</div>

    <div class="controls">
        <!-- 颜色选择器 -->
        <input
                type="color"
                class="color-picker"
                value="#ff0000"
                title="点击选择颜色"
        >

        <!-- 手动输入框 -->
        <input
                type="text"
                class="color-input"
                placeholder="输入颜色名称或十六进制值"
                title="支持格式：red / #ff0000 / rgb(255,0,0)"
        >

        <button onclick="randomColor()">随机颜色</button>
    </div>
</div>
<script src="one.js">

</script>
</body>
</html>
